import { provideRouter, RouterConfig }  from '@angular/router';
import { FuhaosComponent } from './fuhaos.component';
import { Top4Component } from './top4.component';
import { FuhaoDetailComponent } from './fuhao-detail.component';

const routes: RouterConfig = [
  {
    path: '',
    redirectTo: 'top4',
    pathMatch: 'full'
  },
  {
    path: 'fuhaos',
    component: FuhaosComponent
  },
  {
    path: 'top4',
    component: Top4Component
  },
  {
    path: 'detail/:id',
    component: FuhaoDetailComponent
  }
];

export const appRouterProviders = [
  provideRouter(routes)
];